<?php

use Illuminate\Support\Facades\Schema;
use Illuminate\Database\Schema\Blueprint;
use Illuminate\Database\Migrations\Migration;

class CreateQaecmsCarouselsTable extends Migration
{
    /**
     * Run the migrations.
     *
     * @return void
     */
    public function up()
    {
        Schema::create('qaecms_carousels', function (Blueprint $table) {
            $table->bigIncrements('id');
            $table->string('title')->comment('轮播标题');
            $table->string('image')->comment('轮播图片');
            $table->string('href')->comment('轮播地址');
            $table->string('location')->comment('轮播位置')->default('index');
            $table->string('status')->comment('轮播状态 0不显示 1显示');
            $table->integer('sort')->comment('轮播排序,数字越大越靠前');
            $table->timestamps();
        });
    }

    /**
     * Reverse the migrations.
     *
     * @return void
     */
    public function down()
    {
        Schema::dropIfExists('qaecms_carousels');
    }
}
